<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人店铺-个人证照</title>

<link href="<?php echo $this->_webroot('/style/jq-ui/jquery-ui-1.8.18.custom.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/css.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/content.css'); ?>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-1.7.1.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-ui-1.8.18.custom.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery.carouFredSel-5.5.0-packed.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/js.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/content.js'); ?>"></script>



</head>

<body>

<psp:tags     htmlname='shop_topnav'  iconname='shoptopnav' />
<div class="head headpadding">
    <psp:tags     htmlname='shopsearch_default'  iconname='shopsearch_default' />
    <div class="clear"></div>
</div>
<!-- nav_wrap -->
<div class="nav_wrap">
	<div class="nav_logo border_bottom1">
    	<img src="<?php if(!empty($SHOP['shop_template_img'])) {echo $SHOP['shop_template_img'];}else{echo $this->_webroot('photo/company_logo.jpg');}?>"  onerror="this.src='<?php echo $this->_webroot('photo/company_logo.jpg'); ?>'" width="998" height="154" />
    	<div class="nav1_content">
    		<ul class="nav1_ul">
                <psp:tags     htmlname='shopnav_default'  iconname='shopnav' />
            </ul>	
        
    	</div>    
    </div>
    
</div>
<!-- nav_wrap end -->

<div class="container margintop1">

	<!-- main_left -->
	<div id="main_left">
		<psp:tags     htmlname='shopleftmenu_default'  iconname='shopleftmenu_default' />	
        
        <!--  客服中心 -->
		<psp:tags     htmlname='shopservice_default'  iconname='shopservice_default' />
        <!--  客服中心 end -->
        
        <!-- 销量排行 -->
 		<psp:tags     htmlname='shopsalesrank_default'  iconname='shopsalesrank_default' />	
        <!-- 销量排行 -->
        <div class="clear"></div>
        
        
    </div>
    <!-- main_left end -->

	<!-- main_right -->
	<div id="main_right">    
   		<!-- 公司证照 -->
		<div class="company_license_wrap">		
<style>
.tab_credit {
    border-collapse: collapse;
    border-color: #D7D7D7;
    border-style: solid;
    border-width: 1px 0 0 1px;
    margin: 15px auto 0;
}
.tab_credit th, .tab_credit td {
    border-color: #D7D7D7;
    border-style: solid;
    border-width: 0 1px 1px 0;
    line-height: 24px;
    padding: 2px;
    text-align: center;
}
</style>			
            <div class="company_license_hd">
                <span class="company_license_label">卖家信用</span>
            </div>
        	<div class="company_license_body">


        <table class="tab_credit " width="96%">
          <tr>
            <td style="background:#FFF3E8; text-align:right; border-right:0px; font-weight:bold;" colspan="2">卖家累积信用：<?php echo $seller_credit;?>
            <td style="text-align:left; background:#FFF3E8; border-right:0px;"><span class="icon<?php echo $seller_integral['int_grade'];?>" style="float:left;"></span></td>
            </td>
            <td style="background:#FFF3E8; text-align:right;" colspan="3">好评率：<?php echo $seller_percentage;?>%&nbsp;</td>
          </tr>
          <tr>
            <th width="30"></th>
            <th width="100">最近1周</th>
            <th width="110">最近1个月</th>
            <th width="120">最近6个月</th>
            <th width="130">6个月前</th>
            <th>总计</th>
          </tr>
          <tr>
            <td>好评</td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,1,'<?php echo $LastWeek;?>',1);"><?php echo $seller_credit_weed_2;?></a></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,1,'<?php echo $LastMonth;?>',1);"><?php echo $seller_credit_month_2;?></a></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,1,'<?php echo $SexMonth;?>',1);"><?php echo $seller_credit_sex_2;?></a></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,1,'-1',1);"><?php echo $seller_credit_before_2;?></a></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,1,'',1);"><?php echo $seller_credit_num_2;?></a></td>
          </tr>
          <tr>
            <td>中评</td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,0,'<?php echo $LastWeek;?>',1);"><?php echo $seller_credit_weed_1;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,0,'<?php echo $LastMonth;?>',1);"><?php echo $seller_credit_month_1;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,0,'<?php echo $SexMonth;?>',1);"><?php echo $seller_credit_sex_1;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,0,'-1',1);"><?php echo $seller_credit_before_1;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,0,'',1);"><?php echo $seller_credit_num_1;?></td>
          </tr>
          <tr>
            <td>差评</td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,-1,'<?php echo $LastWeek;?>',1);"><?php echo $seller_credit_weed_0;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,-1,'<?php echo $LastMonth;?>',1);"><?php echo $seller_credit_month_0;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,-1,'<?php echo $SexMonth;?>',1);"><?php echo $seller_credit_sex_0;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,-1,'-1',1);"><?php echo $seller_credit_before_0;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,-1,'',1);"><?php echo $seller_credit_num_0;?></td>
          </tr>
          <tr>
            <td>总计</td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,'','<?php echo $LastWeek;?>',1);"><?php echo $seller_credit_weed;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,'','<?php echo $LastMonth;?>',1);"><?php echo $seller_credit_month;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,'','<?php echo $SexMonth;?>',1);"><?php echo $seller_credit_sex;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,'','-1',1);"><?php echo $seller_credit_before;?></td>
            <td><a href="javascript:get_appraise('buyer',<?php echo $user_id;?>,'','',1);"><?php echo $seller_credit_num;?></td>
          </tr>
        </table>
                <div class="clear" style="height:10px;"></div>
            </div>
        </div>
			
		<div class="clear" style="height:10px;"></div>
		<div class="company_license_wrap">			
            <div class="company_license_hd">
                <span class="company_license_label">买家信息</span>
            </div>
        	<div class="company_license_body">		

        <table class="tab_credit " width="96%">
          <tr>
            <td style="background:#FFF3E8; text-align:right; border-right:0px; font-weight:bold;" colspan="2">买家累积信用：<?php echo $buyer_credit;?>
            <td style="text-align:left; background: #FFF3E8; border-right:0px;"><span class="icon<?php echo $buyer_integral['int_grade'];?>" style="float:left;"></span></td>
            </td>
            <td style="background: #FFF3E8; text-align:right;" colspan="3">好评率：<?php echo $buyer_percentage;?>%&nbsp;</td>
          </tr>
          <tr>
            <th width="30"></th>
            <th width="100">最近1周</th>
            <th width="110">最近1个月</th>
            <th width="120">最近6个月</th>
            <th width="130">6个月前</th>
            <th>总计</th>
          </tr>
          <tr>
            <td>好评</td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,1,'<?php echo $LastWeek;?>',1);"><?php echo $buyer_credit_weed_2;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,1,'<?php echo $LastMonth;?>',1);"><?php echo $buyer_credit_month_2;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,1,'<?php echo $SexMonth;?>',1);"><?php echo $buyer_credit_sex_2;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,1,'-1',1);"><?php echo $buyer_credit_before_2;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,1,'',1);"><?php echo $buyer_credit_num_2;?></td>
          </tr>
          <tr>
            <td>中评</td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,0,'<?php echo $LastWeek;?>',1);"><?php echo $buyer_credit_weed_1;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,0,'<?php echo $LastMonth;?>',1);"><?php echo $buyer_credit_month_1;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,0,'<?php echo $SexMonth;?>',1);"><?php echo $buyer_credit_sex_1;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,0,'-1',1);"><?php echo $buyer_credit_before_1;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,0,'',1);"><?php echo $buyer_credit_num_1;?></td>
          </tr>
          <tr>
            <td>差评</td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,-1,'<?php echo $LastWeek;?>',1);"><?php echo $buyer_credit_weed_0;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,-1,'<?php echo $LastMonth;?>',1);"><?php echo $buyer_credit_month_0;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,-1,'<?php echo $SexMonth;?>',1);"><?php echo $buyer_credit_sex_0;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,-1,'-1',1);"><?php echo $buyer_credit_before_0;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,-1,'',1);"><?php echo $buyer_credit_num_0;?></td>
          </tr>
          <tr>
            <td>总计</td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,'','<?php echo $LastWeek;?>',1);"><?php echo $buyer_credit_weed;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,'','<?php echo $LastMonth;?>',1);"><?php echo $buyer_credit_month;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,'','<?php echo $SexMonth;?>',1);"><?php echo $buyer_credit_sex;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,'','-1',1);"><?php echo $buyer_credit_before;?></td>
            <td><a href="javascript:get_appraise('seller',<?php echo $user_id;?>,'','',1);"><?php echo $buyer_credit_num;?></td>
          </tr>
        </table>
			
			
			
<script language="JavaScript" src="servtools/ajax_client/ajax.js"></script>
<script>
function checkForm() {
	var name = document.getElementsByName("name")[0];
	var textareac = document.getElementById("textareac")[0];
	if(!name.value) {
		alert("您还没有登陆！");
		return false;
	}
	if(textareac.value) {
		alert("您的留言内容不能为空！");
		return false;
	}
	return true;
}

function get_appraise(t,userid,credit,time,page){
	var new_credit=credit;
	var new_time=time;
	ajax("http://localhost/do.php?act=shop_appraise&t="+t+"&userid="+userid+"&credit="+credit+"&time="+time+"&page="+page,"GET",'',function(data){
		var obj_credit = document.getElementById("credit");
		var seller_selected=document.getElementById("seller_selected");
		var buyer_selected=document.getElementById("buyer_selected");
		if(data!='-1'){
			var obj = document.getElementById("page");
			var prepage=data.prepage;
			var nextpage=data.nextpage;
			var firstpage=data.firstpage;
			var lastpage=data.lastpage;
			var page=data.page;
			var countpage=data.countpage;
			var seller_credit='';
			var pagehtml="<tr><td id='page' colspan='4'><A href=\"javascript:get_appraise('"+t+"\',"+userid+",'"+new_credit+"','"+time+"',"+firstpage+");\">首页</A> <A href=\"javascript:get_appraise('"+t+"',"+userid+",'"+new_credit+"','"+time+"',"+prepage+");\">上一页</A> <A href=\"javascript:get_appraise('"+t+"',"+userid+",'"+new_credit+"','"+time+"',"+nextpage+");\">下一页</A> <A href=\"javascript:get_appraise('"+t+"',"+userid+",'"+new_credit+"','"+time+"',"+lastpage+");\">尾页</A> 当前第"+page+"页/总共"+countpage+"页</td></tr>";

			var result = data.result;
			var credit='';
			if(t=='buyer'){

				seller_selected.className="selected";
				buyer_selected.className="";
				for($i=0;$i<result.length;$i++){
					scredit=result[$i].seller_credit;
					if(scredit=='1'){
						seller_credit="好";
					}else
					if(scredit=='0'){
						seller_credit="中";
					}else
					if(scredit=='-1'){
						seller_credit="差";
					}
					if(result[$i].seller_explanation==null)
						result[$i].seller_explanation="";
					credit+='<tr><td class="rate">'+seller_credit+'</td><td class="comment"><p>'+result[$i].seller_evaluate+'</p><p class="explan">[解释]'+result[$i].seller_explanation+'</p><p>['+result[$i].seller_evaltime+']</p></td><td><a href="goods.php?id='+result[$i].goods_id+'" target="_blank" style="font-size:12px; font-weight:bold; color:#0044DD" title="'+result[$i].goods_name+'">'+result[$i].goods_name+'</a><br />价格：￥<span style="color:#FF6600; font-weight:bold;">'+result[$i].goods_price+'</span>元<br/>'+result[$i].user_name+'</td></tr>';
				}
			}else
			if(t=='seller'){
				seller_selected.className="";
				buyer_selected.className="selected";
				for($i=0;$i<result.length;$i++){
					bcredit=result[$i].buyer_credit;
					if(bcredit=='1'){
						buyer_credit="好";
					}else
					if(bcredit=='0'){
						buyer_credit="中";
					}else
					if(bcredit=='-1'){
						buyer_credit="差";
					}
					if(result[$i].buyer_explanation==null)
						result[$i].buyer_explanation="";
					if(result[$i].buyer_evaluate==null)
						result[$i].buyer_evaluate="";
					credit+='<tr><td>'+buyer_credit+'</td><td><p>'+result[$i].buyer_evaluate+'</p><p class="explan">[解释]'+result[$i].buyer_explanation+'</p><p>['+result[$i].buyer_evaltime+']</p></td><td><a href="goods.php?id='+result[$i].goods_id+'" target="_blank" style="font-size:12px; font-weight:bold; color:#0044DD" title="'+result[$i].goods_name+'">'+result[$i].goods_name+'</a><br />价格：￥<span style="color:#FF6600; font-weight:bold;">'+result[$i].goods_price+'</span>元<br/>'+result[$i].user_name+'</td></tr>';
				}
			}
			obj_credit.innerHTML = "<table class='tab_credit_des' width='100%'>"+credit+pagehtml+"</table>";
		}else{
			if(t=='buyer'){
				seller_selected.className="selected";
				buyer_selected.className="";
				obj_credit.innerHTML = "<table  class='tab_credit_des' width='100%'><tr><td>没有来自买家的评价</td></tr></table>";
			}else
			if(t=='seller'){
				seller_selected.className="";
				buyer_selected.className="selected";
				obj_credit.innerHTML = "<table  class='tab_credit_des' width='100%'><tr><td>没有来自卖家的评价</td></tr></table>";
			}
		}

	},'JSON');
}

get_appraise('buyer',6,'','',1);
</script>			
			
			
			
			
			
			
			
			
			
                <div class="clear" style="height:10px;"></div>
            </div>
           
    	</div>
		<!-- 公司证照 end -->
    </div>
    <!-- main_right end -->

	<div class="clear"></div>
</div>
<!-- 友情链接 -->
<psp:tags     htmlname='links'  iconname='links' />
<!-- 友情链接 end -->

<div class="clear"></div>

<psp:tags     htmlname='default_footer'  iconname='defaultfooter' />
</body>
</html>